package com.orz.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;


@Entity
@Table(name = "usertable", catalog = "demo")
public class Usertable implements java.io.Serializable {

	// Fields

	private Integer userid;
	private String username;
	private String userpwd;
	private String userdesc;

	// Constructors

	/** default constructor */
	public Usertable() {
	}

	/** full constructor */
	public Usertable(String username, String userpwd, String userdesc) {
		this.username = username;
		this.userpwd = userpwd;
		this.userdesc = userdesc;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "USERID", unique = true, nullable = false)
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "USERNAME", nullable = false, length = 100)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "USERPWD", nullable = false, length = 100)
	public String getUserpwd() {
		return this.userpwd;
	}

	public void setUserpwd(String userpwd) {
		this.userpwd = userpwd;
	}

	@Column(name = "USERDESC", nullable = false, length = 200)
	public String getUserdesc() {
		return this.userdesc;
	}

	public void setUserdesc(String userdesc) {
		this.userdesc = userdesc;
	}

}